﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

using AbstractFramework.Display;

namespace ControlLib
{
    /// <summary>
    /// Interaction logic for FloorIndicatorDisplay.xaml
    /// </summary>
    public partial class FloorIndicatorDisplay : UserControl,IFloorIndicatorDisplay
    {
        public FloorIndicatorDisplay()
        {
            InitializeComponent();
        }

        public void turnOff()
        {
            txtElevator.Visibility = Visibility.Hidden;
            txtResponseTime.Visibility = Visibility.Hidden;
        }

        public void showMessage(string elevatorName, string responseTime)
        {
            txtElevator.Visibility = Visibility.Visible;
            txtResponseTime.Visibility = Visibility.Visible;
            txtElevator.Text = elevatorName;
            txtResponseTime.Text = responseTime;
        }
    }
}
